package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.StrategyDetail;
import cn.wolfcode.luowowo.article.domain.StrategyTag;
import cn.wolfcode.luowowo.common.query.QueryObject;

import java.util.List;

public interface StrategyDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyDetail record);

    StrategyDetail selectByPrimaryKey(Long id);

    List<StrategyDetail> selectAll();

    List<StrategyDetail> queryForList(QueryObject qo);

    int updateByPrimaryKey(StrategyDetail record);

    String getTags(Long id);

    /**查询目的地的攻略
     * @param id
     * @return
     */
    List<StrategyDetail> getGuideId(Long id);

    //查询游记点击量前3的
    List<StrategyDetail> listViewnumTop3(Long destId);
    //查询热数据
    List<StrategyDetail> list();

    //数据落地   定期统计数据到mysql中
    void updateStats(StrategyDetail strategyDetail);
}